package com.ruiysoft.crm.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * 常用网址
 *
 * @author fanyl
 * @date 2019-04-14 12:53:32
 */
@Data
@Accessors(chain = true)
@TableName(value = "biz_website")
public class BizWebsite extends Model<BizWebsite> {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 机构编码
     */
    @TableField(value = "enterprise_id", exist = true)
    private String enterpriseId;

    /**
     * 网站名称
     */
    @TableField(value = "site_name", exist = true)
    private String siteName;
    /**
     * 网站地址
     */
    @TableField(value = "site_url", exist = true)
    private String siteUrl;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "create_date", exist = true)
    private LocalDateTime createDate;
    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "modification_date", exist = true)
    private LocalDateTime modificationDate;
}